package com.chixing.service;

import com.chixing.pojo.Myorder;
import com.chixing.pojo.OrderCarVO;
import com.chixing.util.ServerResponse;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: wtl
 * @Date: 2021/10/10/18:22
 * @Description:
 */
public interface OrderService {
    public ServerResponse save(Myorder order);

    public ServerResponse getById(Integer orderId);

    public ServerResponse getByOrderCustomer(Integer custId, Integer status);

    public ServerResponse getByOrderId(Integer myOrderId);

    public Myorder getByOrderNum(Long orderNum);

    //查看订单详情（订单+商品）
    public OrderCarVO getBy2OrderId(Integer myOrderId);

    public ServerResponse getOrderCarAndStore(Integer orderId);

    public ServerResponse saveOrder(Myorder order);


    //修改订单状态
    public boolean updateMyOrderStatus(Integer orderId, Integer status);


    public Myorder getMyorderId(Integer myOrderId);


}
